import request from '@/utils/request'

export function listDownloadLog(query) {
  return request({
    url: '/api/downloadLog/list',
    method: 'get',
    params: query
  })
}

export function getDownloadLog(downloadLogId) {
  return request({
    url: '/api/downloadLog/' + downloadLogId,
    method: 'get'
  })
}

export function saveOrUpdateDownloadLog(data) {
  return request({
    url: '/api/downloadLog/saveOrUpdate',
    method: 'post',
    data: data
  })
}

export function delDownloadLog(downloadLogId) {
  return request({
    url: '/api/downloadLog/del/' + downloadLogId,
    method: 'post'
  })
}
